//先引入mockjs模块
import Mock from 'mockjs'

//json文件的相关数据可以直接引入，webpack已经默认暴露了
import banner from './banner.json'
import floor from './floor.json'

Mock.mock("/mock/banner", { code: 200, data: banner }) //模拟轮播图
Mock.mock("/mock/floor", { code: 200, date: floor }) //模拟家电